import React, { Component } from 'react';


const Comps = {
  compa() {
    return <h1>comp-a</h1>
  },
  compb() {
    return <h1>comp-b</h1>
  }
}

export default class Movie extends Component {
  render() {

    let Comp = true ? Comps.compa : Comps.compb

    return (
      <>
        <h1>movie</h1>
        <h1>gp16</h1>
        {/* {this.props.children} */}
        <Comp></Comp>
      </>
    )
  }
}